package pack0618;

public class ZuoYe2 {
    public static void main(String[] args){
        for(int s=100;s<1000;s++){
            int a=s/100;
            int b=s/10%10;
            int c=s%10;
            if(s==a*a*a+b*b*b+c*c*c){
                System.out.println(s);
            }
        }
    }
}
